/*******************************************************************************
 * This file is part of TERMINAL RECALL 
 * Copyright (c) 2012, 2013 Chuck Ritola.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the GNU Public License v3.0
 * which accompanies this distribution, and is available at
 * http://www.gnu.org/licenses/gpl.html
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 * See the COPYING and CREDITS files for more details.
 * 
 * Contributors:
 *      chuck - initial API and implementation
 ******************************************************************************/
package com.ritolaaudio.trcl.control;

import java.util.ArrayList;
import java.util.Iterator;

public abstract class GameController
	{
	private ArrayList<GameControllerListener> listeners = new ArrayList<GameControllerListener>();
	protected Iterator<GameControllerListener> getGameControllerListenerIterator(){return listeners.iterator();}
	public void addGameControllerListener(GameControllerListener l){listeners.add(l);}
	public void removeGameControllerListener(GameControllerListener l){listeners.remove(l);}
	}
